package com.sanen.flyer.entity.blast;

import com.sanen.flyer.common.Animation;
import com.sanen.flyer.entity.FlyObject;

import java.awt.*;
import java.awt.image.BufferedImage;

/**
 * @author wsse
 * @date 2018-09-20 16:43
 */
public abstract class Blast extends FlyObject{
    protected Animation anim;



    @Override
    public void draw(Graphics g) {
        super.draw(g);
        anim.draw(g);
    }
    public abstract void init(int x,int y);
    @Override
    public void logic() {
        if(anim.getPlayCount()==0)isRemove=true;
    }

    @Override
    public void move() {

    }

    @Override
    public boolean outOfBounds() {
        return false;
    }

    @Override
    public boolean touchBounds() {
        return false;
    }
}
